Yes it will fit. I had a CJ top on my YJ for a short time before I sold it. The doors will need new strikers but they will fit also.
The only issue running a CJ top is the rear window latch will be in the way of your spare tire, which would cause a little issue when opening the back window. Small inconvenience.
Luck Favours The Prepared