Yes, you must show 2 years of expenses in a blocked account.
If you are undertaking a study of more than 2 years, but only put the minimum deposit in your blocked account, they may ask you for more money as you haven’t sufficiently shown that you can support yourself financially for the 2 years you’ll be in Germany.