Will I be in a deep s#@t if arrive back from work from md appt after 4 hours?

Depends. If you have a doctor's note (work excuse signed by the doctor), you should be ok provided it's a reasonable amount of time. The rest is between you and your boss.