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 ...
Cable protectors or cord channels also work well for managing loose wires while keeping them safe and tidy. No, even outdoor-rated ... conduit and follow local electrical codes.