Does it matter how you take off jumper cables?

Can you take jumper cables off while cars are on?

When disconnecting jumper cables which do you take off first?