No, even outdoor-rated extension cords are not meant to be buried. For any wiring intended to go underground, you should use conduit and follow local electrical codes. Holiday lights, however ...