Rear glass question

Would the back glass on a 4 door fit a 2 door hard top?
Thanks for the info