rjbishopjr,
My condolences to you and your family.
Yes you can claim him on your tax return as a dependent.
You may treat a child who was born alive or died in 2022 as having lived with you for more than half of 2022 if your main home was the child’s main home (or would have been) for more than half of the time he or she was alive in 2022