Raising voice at toddler?

Do you ever lose your cool and raise your voice at your children? My son is two and his father isn't around to help so I often end up yelling at him when he does wrong. I feel so terrible for this. He doesn't act scared after I do it and sometimes it actually helps....