Will a 1990 Jeep Wrangler hard top work on a 1997 Jeep Wrangler?

I shouldn't, 1990 is a YJ and the 97 is a TJ.