Yes. Betting on motorsports is legal in most parts of the world. It's classified as sports where the outcome is derived from human activity and effort.