Installing Basement bathroom exhaust fan in a side wall rather than a ceiling
Yes you can mount the fan on the wall. if the wall exhausts to the outside it would be no different than a wall mount exhaust vent in the main floor bathroom. You cannot mount it on an internal wall and just dump the air into a stud bay (I have seen this tried and failed).