Squeak
Welcome to AHB
I am sure you didnt sit down to work out a question that has no definitive answer but you have succeeded.
This is something you like all of are going to come across often. In some cases there are things that are just plane wrong, however there are often lots of right answers to the same question, the hard part is finding the answers that work best for you.
To take the question you have posed.
It can be beneficial to pitch onto the yeast cake from a previous brew. You have an extraordinarily large number of yeast cells ready to go to work on your fresh wort.
If you kept doing this with brew after brew, you will fall flat on your face. One of many things will go wrong, inevitably you will get an infection, the yeast population will build up to the point where it starts to change the flavour of the beer etc.
If you are brewing a very heavy beer, an Imperial Stout, a Barley Wine or the like it is an advantage to have a mega population of yeast. The method you have asked about is a great way to get that population.
So the answer is it can be a good idea but it isnt always a good idea.
Welcome to the wonderful world of brewing.
MHB