Comment by bawolff
Sure, but if you are memorizing the proof instead of understanding it, you aren't going to be able to generalize it.
In general, math is not a subject where memorization is going to get you ahead. The "why" matters much more than the "what".