You will be cocking the hammer on a gun that is loaded!!!
Yep. People do it all the time. I do it every time I fire my Sharps, and back when I stuck in the heavy cover after Bambi...I'd spend some time practicing with my Model 94...carrying it at port arms with the hammer at the safety/half-cock position and bringing it on-target while thumb-cocking it as I brought it up.