We are in the process of planning our basement refinishing. I purchased some recessed lights, but I am concerned about the installation. The lights fit but there is no gap between the top of the can and the floor upstairs. Is this up to code or should I take them back and get different ones?

They are IC lights.