Do you place a gasket or a caulk between the cap and truck body to keep from leaking?

I put foam tape between a camper top and the truck bed.