Our son was a dependent until late September when he moved out

Can you claim a dependent for part of the year?  He was a dependent for 9 months but then moved out and is paying his own bills (other than some help from us and he is on our health insurance)