Claiming a dependent

My son lived with me from Jan thru Aug. He now lives with his mom. If his mom does not work but I do can I still claim him as a dependent?