Sort of, is unfortunately the most truthful response you’ll get as it depends on more factors than any one person is likely to have come across in one bike.
Many confuse the capacity of the derailleur cage with the number of teeth on the cassette big cog. Unless you’re trying to run a super short road mech or a double or more up front this will never be an issue.
Cassette coverage is the problem, and unfortunately Shimano have the worst time of it due to the placement of pivot points, jockey wheels and shape of cage. The SRAM RD geo suits the bigger cassette far better and is a better option if you have the choice as you definitely need no extra parts that way.
You may get away with winding the B screw all the way or maybe even turning it round, or you may find that you still need more to sort out the shifting accuracy and that’s when you’ll want to start looking at goat links or Radr cages etc. If you’re really unlucky it might still shift like crap after lavishing all the time and possibly parts on it.
None of which is meant to put you off, just to highlight that it’s not always the easy choice and may possibly not work for you depending on parts choices and pickiness about shift quality. It might be worth trying to ride with a regular 11-36 and maybe drop a couple of teeth up front for a while and see how it goes if going to 11 really isn’t an option?