It depends on a variety of factors such as the condition of the wall, reinforcements, and frame. You will also want to verify the gauges of the door and frame are compatible, and also that the hinge and strike locations match.
It is best to inquire with the door supplier for fire rated openings.