If your asking if just replacing the gaskets is going to fix the issue.
No way to tell.
Depending on the age / mileage
Being your pulling the heads.
It would be wise to have them serviced / machined at a qualified machine shop.
Also check the deck for flatness to determine if the block will need resurfacing.