That's also a way of doing it
As long as you make sure you have the correct voltage on each wire and ground, it will work.
And checking = knowing.
I know because my job is installing meters for electricity and gas and it's also what I specialized in at school.