Yes, a smoke alarm is allowed on the wall, but placing it on the ceiling is preferred for optimal performance. If installing on the wall, mount it high, 10-30 cm (4-12 inches) from the ceiling, as smoke rises. Ensure it is away from corners and not obstructed by furniture or drapes to ensure effective smoke detection and early warning.