Yeah, that's it.
If it's for ac, just cut it off and splice it.
As far as the other one, Bob Roberts has them. I go to him because Radio shack doesn't have them.
If you have a set of calipers, measure the distance between the holes and you have part of the description. Like .093" whatever.
If you are wanting to put it together, you can *ugh* solder it together. I've seen that done more than once.
You might luck out and get a connector for a computer to work. You don't have to be pretty. You can use a 6 or 7 for a 3.
But Bob has those Molex connectors of about every size.