That is a typical use for a connector configured like that. See if the pin with the black wire is earth and the pin with the red wire is live even with the ignition off. If so, the connector is wired to the battery. If you can find a small red wire going to the battery +, make sure it is fused as an unfused live wire traveling through the frame is a bad idea.