I cant say for sure because i have only used a 10 speed long cage derailleur with a 11-40 cassette. This was however no problem.
The range is not the problem, if there is anything that might make it tricky it should be the b-screw adjustment, if the original screw is enough or not i cant say.