It can happen, especially on a humid night, but it should not be a regular occurrence. Ice usually forms when there is not enough airflow across the evaporator coil.
Check and clean the air filter, make sure the ceiling vents are open, and run the fan on high instead of low during humid weather. Also avoid setting the thermostat extremely low for long periods.
If it freezes again after those checks, the evaporator coil may be dirty, the freeze sensor may be out of position, or the unit could be low on refrigerant. At that point, it would be worth having an RV technician inspect it.