Yes, in fact it's a great idea to have sealants
when you have braces
, because the orthodontic hardware has a tendency to collect more debris and food particles which can lead to decay.
While sealants don't make your teeth immune to decay, that sure make it harder to get cavities. Good investment!