Not with gravity.
Accretion assures the planet that it will neither be hollow or flat. Small rocks can be shaped other than round/oblate but something as big as a planet will be shaped, filled and round/oblate by the force of gravity.
(Unless we have aliens out there that can shape planets! )