Yes, it's perfectly safe to cook raw chicken with vegetables so long as you only eat them once the chicken has come to the proper cooking temperature. So once the bird reaches 160-165 degrees F and the veggies are properly cooked through, consume.