Yes, very often. It's obviously metaphorical. When my boss says "Thanks for your hard work on this. It looks great" I don't expect him to pat me on the pack literally, but I might say "I got a nice pat on the back from my boss today" when I got home.
PS - Welcome to the forums!