Yes. I've used Fine-L-Kote, which will keep moisture out.
You mask the connectors and spray. It's transparent, but glows in UV so you can examine it for missed areas.
That's a thin coating. Automotive tends to dip in a heavier resin-type coating. At the other extreme, there are ultra-thin coatings used on some mobile devices.
That's a thin coating. Automotive tends to dip in a heavier resin-type coating. At the other extreme, there are ultra-thin coatings used on some mobile devices.