You can, but 'less bad' is normally to indicate that both are bad, but one less so, which is not identical.
Can I say "not as good" as "less good" and "not as bad" as "less bad"?
You can, but 'less bad' is normally to indicate that both are bad, but one less so, which is not identical.