Agreed, but it also goes even farther than just avoiding doing things that are immoral. We should be breaking laws that prevent us from doing the right thing.
Snowden probably broke some laws, but we're all better off for it.
Fortunately, most people in tech understand this!