Yes, taking both the COVID-19 vaccination doses is mandatory for utilising all its health benefits. These should both be of the same vaccine type.