Yes, but they don't mean the same thing. In #1, you're pointing out the thing that he should not have done. In #2, you're giving the reason for something he did which he wasn't supposed to do.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.