Your okay. Conductors must be suitable for direct burial or if in conduit the conductors must be rated for wet locations. Like THHW.