Yes and no. I would say that a model answer here (*) should state (in some form or other) the result you're assuming [i.e.
∑k=1nk3=41n2(n+1)2], and it should end with the result you're proving [i.e.
∑r=1n+kr3=41(n+k)2(n+k+1)2].
Personally, I think you need at least a
smidgen of explanation as well, otherwise you've literally quoted a standard result and written the answer. So you'd need to say "substituting n+k for n" or similar (and note that this is slightly awkward language, because really the "n" in "n+k" is something different from the "n" in "for n", so you're using the same letter for 2 things).
In practical terms, the given solution is very direct - by quoting the "sum of cubes" result using
m instead of
n it means you can just say "set m = k+n" with no other explanation required.
(*) In general, answers to maths questions should still be "full sentences", in the same way as for more essay based subjects. (Time constraints may make you take shortcuts, but a model answer shouldn't). In this case that means there's a minimal length it's hard to reasonably go below.