Yes
Both have different counselling rounds. Jee mains and advanced gives rank based only on their individual papers. One may attend counselling for both provided he is eligible. Jee mains marks makes you eligible for advanced if you score the cutoff marks and then it has nothing to do with jee advanced rank or the counselling.
Hope that helps 🙂