It is completely safe to cook raw shrimp with vegetables, as long as the shrimp are cooked thoroughly before serving.