A male to male electrical cable with wall socket plugs is a fire hazard. There are some made to be used to connect a generator to a house but it's a really bad idea.
Network cable also doesn't do male to male lol what?
You do mean patch cables yes, like cat#? Rj45 ends definitely require a female end, and you surely aren't splicing the wires together with dolphins i hope.