Top end service can be done with the engine in the frame. It says so on page 31 of the factory service manual.
Now for a bit of a lecture. The fact that you asked that question implies that you either do not have the service manual, or you are too lazy to look in the service manual to answer routine questions about procedure.
The manual is your first source with regard to technical questions. For instance, if you were to ask what the service limit is for piston clearance, you would receive a well-deserved bitch slap. That information is in the service manual. We, as a group, are here to help you with whatever you need, but there is no excuse for not studying the service manual before you proceed with engine work. If you are doing engine work and you have not obtained a service manual first, you are an idiot. A free download of a PDF of the service manual is easy to find on-line.
Not saying you are an idiot, just expressing that you MUST have the proper reference material to do this job, and don't expect us to read the service manual for you. RTFM, as they say.
The service manual does have it's shortcomings, and those of us with actual experience can help you with the questions that the manual cannot answer, such as your first post, which is an excellent question.