That should be fine for the most part. There are some boards that are designed to make electrical contact with the RF shield, in which case you should just make sure those contact points are not coated with non-conductive material.
Edit: To clarify further, I’m referring to boards like the...