You can but the roasting time is different for both of the vegetables. You will want to roast your carrots for about 10 minutes prior to adding the green beans to the baking sheet. This should ensure they come out cooked perfect, at the same time!