Sure it is. As long as both are fully cooked at the end, they can absolutely be cooked together. In fact, doing so, gives them both added taste.