Sure. Many socialist countries have laws that prevent anyone from obtaining healthcare outside the government system. Canada is one. How does any government enforce it's laws other than at gunpoint?
Canada's Supreme Court struck down the ban - no guns involved.
If Americans are forbidden to buy drugs from Canada, is that also at the point of a gun?