Yes, you can paint your bathroom vanity in place without removing it. However, you need to ensure proper ventilation and cover the surrounding areas to protect them from paint splatters.  Take your time and be careful during the painting process to avoid accidental spills on other surfaces.