This argument is often cited in gun control debate. “Criminals will just buy guns illegally and law abiding citizens will be left defenceless”.
And yet, in countries with gun controls, there is significantly less gun crime.
I daresay this is the case for most laws. Yeah, there will be always be some people skirting the law, but implying laws have no effect is ridiculous and untrue.