External power supply to breadboard

This is the relay I use:

I also have another one, which is not installed for the moment:

Do I need to connect the ground to the esp 3.3 ground also for any of these 2 relays?