Welcome along.
If your ceiling is less than 225cm high and the pull cord will be within 60cm of the edge of the shower cubicle, (or if it is a wet room then within 120cm of the shower head) then this would not be permissible, usually the easiest course is to move the switch across the ceiling...