It works and the only other tip I'd add would be to plug in the male to female in the same cord.
If the cord is left out in the garage or carport here, we have little dirt daubing wasps that will fill every available opening and plugging the ends together will thwart them.