Quite correct. If we take the physics down to it's most fundamental, the existence of the ecliptic is explained by "proportionality" within Newton's Law of Universal Gravitation - gravity's effect is quadrupled each time the distance between two objects is halved.
Very simply, as randomly scattered matter begins to fall together it initially forms rough clumps we call "nebulae". At a critical density it must accrete into a disc (the formation of the elliptic).
At increasing densities gravitational force overcomes the elliptical force and continued accretion results in spherical shapes. Inertia is the main reason the spheres continue to track within the elliptic plane.
The planets do not orbit the sun. The planets and the sun itself all orbit the center of gravity of the solar system as a whole. Thus the "imperfections" we see such as partial eclipses and annular eclipses in addition to the rarer total solar eclipse.
If there was "perfection" we would have two total solar eclipses every year that would track at at the same latitude longitude each time.
While there may not be "perfection" there is no "randomness" either. Eclipses are very easily predictable even thousands of years into the future.