Discussing a child's medical history and potential allergies with a dental professional is essential before any dental procedure, including teeth whitening. This ensures that there are no adverse reactions to the whitening agents, promoting a safe and suitable procedure for the child.