Yes, there are 3D Mario games. The newer Wii entry offers a taste of 3D gameplay, but if you want the fully realized 3D experience, Super Mario 64 is the classic that did it completely.
Mario 64 is often celebrated as a landmark that defined 3D platforming, so it's the go-to recommendation if you're after a true, fully three-dimensional Mario adventure.