If my dependent Only worked 4 months can I still add them and they can use there own w-2 next year

She was pregnant so I take care of her and payed her expenses for more than half a year