Yes! All ingredients will heat up and cook together in the process, making it totally safe to eat. However, if you were to remove the vegetables halfway through, while the chicken is still raw, they wouldn't be safe to eat. Basically, all I'm trying to say is that once the chicken is cooked, the vegetables are safe to eat.