Can autism be used as an excuse for bad behaviour ?

Quite simply can those with awareness of their autism, use the diagnosis/label as an excuse for what NT's consider is bad behaviour?

Or is it, to accuse an autistic person of abusing their diagnosis is in effect lack of understanding of autism?

And worse, abuse of autistic people