Is it legal to run payroll for your parent as household employer in order for them to become eligible for subsidies under obamacare?

My mom recently became a green card holder and we live in the state of NJ where there is a 5 year wait period for green card holders to be eligible for medicaid.  I am considering running payroll for her as an household employer in order for her to be eligible for subsidies under obamacare. Is this legal to do so?