You can cook them in the same pan, but not at the same time since they require different cooking times. So rather than grilling the steak, you can pan-fry it, let it rest covered, and while it rests you can cook the eggs.