Teeth are porous and whitening will not affect the attachments. The most important thing to remember is to apply the whitening gel evenly in the tray to cover all areas of the teeth. Touch-ups may be needed when you are done with your aligners, but that is expected and okay.