The first pic reminds me of wires that would be attached to an Alternator
The second pic the black plug reminds me of fuel injector plug, and the white connector would plug into it. Don't know of any motor requiring that type connector to be removed
So far as the plug to cap wires, so long as...