That's a no-no...
Never use quick connects or wire nuts on a boat.
Fwiw, according to a BOAT/US article from a couple of years ago, 55% of all boat fires are electrical in origin (only 8% are fuel related, which shoots down a popular theory)...30% were caused by DC wiring [problems....shorts, overloads, no-no's etc.