Do I need to escape get_the_post_thumbnail function?

No, you don’t have to escape the data. And it doesn’t need to be escaped. Please take a look at the_post_thumbnail() function, it didn’t do any escaping. So no worries.