I mean, I guess you can. But you can also make simple modifications and keep it in whatever room it's currently in.
In the bathroom is be worried about fumes from perfume, hair spray, poop odor spray, etc...all things that are used daily in my bathroom.
It seems silly to me to move it when you can just fix the issue where it currently is.