Yes. Both stimulus payments are reconciled on your 2020 return, regardless of the fact that it may have been received in 2021.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"