Can I Claim my wife as depended (Married filling jointly) if she is having medicaid during pregnancy.?

Can I Claim my wife as depended (Married filling jointly) if she is having medicaid during pregnancy.?

she is On F-2 Visa ( student dependent visa). she is not working. Any help will be greatly appreciated.