@YARNLADY Not exactly. Elected officials have full or qualified immunity and they may assert these privileges as defenses to a suit. You can look that up for more.
In the US, while in the midst of performing their legal obligations, I don’t think you can sue them. E Jean Carroll’s lawyers proved that 45 wasn’t performing his legal obligations when he ran his mouth about her so a judge ruled that she could continue with her lawsuit. Not sure about the laws in Canada.