Can I wash ointment off after applying?

I was recently prescribed a topical corticosteroid by a dermatologist for dry and irritated hands. It says apply before bed, so I did, it’s been an hour since I applied it but I don’t have any gloves because I’m scared of touching my face or eyes in my sleep and smearing it all over my bed sheet. Can I wipe it off since it’s been almost an hour already? I should be using it for 7 days.