The fuel pump is in the fuel tank.
However, your complaint is starting when hot. A failing fuel pump could cause this problem, but it would not be my first guess if there were no other symptoms when it was colder.
I would definitely want to check fuel pressure/ volume before the replacement. do this when the problem is happening.