I think you're confused. I'll explain why.
Some contries enforce regulations on what tyres are deemed road-legal, due to requirements on safety and minimum grip. It's also why it's illegal to drive around with bald tyres.
However, said countries also allow the sale of tyres for track and competitive use, as long as they are clearly sold as not road-legal and for competitive use only.
So, no. You can buy track tyres. You just can't expect to drive with them when you're dropping off your kids at school and not get a fine.
Also, it should be noted that some motorsport competition ban or restrict the use of slick tyres.