Yes, assuming all other requirements are met. You would not have had to live in the household with them in order for them to be claimed as dependents on your joint return.
When you are working through the dependent questions with respect to how long the child lived with you, consider either you or your spouse when answering. Then, some of the follow-up questions will go into more details if needed.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"