hello edward,
i used to have hamsters years ago now and used to run a real shallow bath so the bottom of the bath was not completely covered with warm water and used to put my hamsters in there i didnt leave them in there for long though, so the answer to your question is yes
Make sure theres not any soap or cleaning fluids left over in the bath though. And dont take the plug out and watch him swirl. No matter how funny it may be ;)
Make sure you use bubble bath soap, for sensitive skin, it might ruin their fur otherwise. And keep a blowdryer ready nearby, hamsters dont like getting cold or wet, and the poor thing can catch a cold too.