When it comes to electrical safety, knowing how to wire a light switch or receptacle is only part of doing responsible DIY ...
If your switch has clamp-style terminations ... Use appropriately-sized wire nuts or Wagos to connect these to your house ...