Yes, it can be done, but only if the plinth heater is specifically rated for bathroom installation and complies with the bathroom electrical zones under Part P.
In my experience, the biggest mistake is people fitting standard kitchen plinth heaters in bathrooms where humidity and condensation...