Yes, you can count your dependent as living with you for the entire year.
Take a look at the following TurboTax help article for more information:
Does a dependent for 2021 have to live with me?
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"