Unless local codes prohibit it and the proper burial depth can be met, it should be OK. So, check with the AHJ.