It is recommended to have your cavities treated before teeth whitening so that your tooth doesn’t further decay and is strong enough to withstand the peroxide.