Yes you can. In college & in High school when I was running competative you would often times have to go from workout to class so we would have to run from the track to the shower.. It does not hurt at all. If you have ran in very hot weather a cold shower might even help.
1