beginner vs experienced player


No. They're experienced and will be playing their best. They might(and most probably will) play moves you won't understand, so you won't gain knowledge.
If you go to a chess club in the real world, not online, you get to do this and the opponent might even allow you takebacks and give instructions etc. Now that is very beneficial.

If you were let's say 1 500 rated, and you play against some GM, I would say that even though the difference in skill is vast, if you take a few hours to analyze that game, you will figure some useful things out.
I am saying that as someone who analyzed his losses against people who were using outside assistance, and when I took the time with those games afterwards I was able to understand some of their moves that were a bit unclear to me during the actual game.
That being said, 600 rated player will not be able to figure out much beyond blunder checking, and maybe a little bit more if he tries his best, so even though it is not a complete waste of time, it is not that optimal either. Game against 1 000 rated player would be another story.
However, if you play a game against 1 800 level player, you could perhaps ask him to share his analysis of the game with you (in case he bothered to analyze it). I played some unrated games with novice players, and from time to time I analyzed the game for them.