But there are restrictions of what parts you can use. I can't just make my own engine and drive around with it without getting that engine certified, right?
This is automobiles, not general aviation. You don't have to get your engine certified to drive it on public roads, but you might have to pass emissions.