Should I be concerned my son is having accidents?

My son has been potty trained for months now never really had an accident now the last two nights he’s peed in the bed. What is going on do i need tk be worried about a uti or something