If you only have a bonded filling on the tooth, then you can absolutely whiten your teeth now. It will not harm the tooth, but the whitening will not change the color of the bonded filling, so there could be a little discrepancy. Then, you can make the new crown match the shade of the rest of your teeth!!
I usually do not recommend placing a permanent new crown before whitening, because then you are committed to trying to bleach your teeth to match the crown unpredictably. If you have a temporary crown in place now, I would not recommend whitening now, because it could make a temporary crown turn an orangey color.
Hope this helps!!