Not at all. Both are about not conforming to unstated conventions. A lot of what's been written about "unprofessional" applies equally well to "offensive".
You have a point. While I don't think being an asshole is a part of hacker culture, I can see a lot of things hacker say and do be labelled as "offensive" or "unprofessional", because they break unwritten rules about behaviour. Most of the time I saw that happening it was because hackers tend to state things directly instead of engaging in political correctness that is perceived to be a waste of time.