Depends on local codes. Sometimes direct burial wire is OK. I always prefer to trench and lay in conduit.