In proximity to other touch hazards, and protected from general access, yes. Somewhere where the end user might contact the back of it doing routine maintenance etc. *NO*!
I'd be more worried about the switch becoming dislodged or if its really cheap and nasty, its rocker popping out exposing live contacts. The former can be fixed by a suitable adhesive sealant to prevent its locking ears geting pushed in, but the latter would need replacement with a good brand of switch, at which point you might as well do it properly, though it looks like it would be possible to re-do its PCB connections from the top side, taking care not to add too much solder.