Question: mtg are infinite combos legal?
Answer: Both cards are perfectly fine to play, and some other combos, such as Lab Maniac, make use of it in legal ways. Taking it a step further, activating them to mill your deck, even if you know there's an Emrakul in it, is also fine.