Maybe. In some states it would depend on who holds title to the property. Even if someone is legally married, if they are not the property owner, they can be made to leave the the premises. If it is joint ownership some type of court order would have to be ordered against the spouse (like a DOV restraining order).
Make sure your name is on the paper work, get copies of it and keep in your vehicle under the seat. You can have a locksmith come out and open the door as long as your name is on the title and show them before they open the lock for you. If the husband is at home and won't let you in, call the police department and tell them you need to be placed in a temporary shelter if you have no place to go and your husband is mistreating you. If you get into your home while he is gone, be sure to get all your paper work and call the police if he tries to hurt you.
This is a complicated issue, In some states, it DOESN'T matter if your are a resident, if you have lived there longer than 6 months, received some kind of mail stating your name, address, etc. That is effective and different for each state, but they can't just make you leave. Contact your local police department, state patrol. Or your local Courthouse. They will be able to tell you what the county laws are concerning what is acceptable for locking someone out of their home.
I would just like to add that we are talking about domestic relationships here. Not just letting someone live in your home. This is husband and wife, boyfriend and girlfriend, domestic partners, life partners. That sort of thing. Just because you don't own the house together.. one might own it and the other just helps pay for it.. what ever the case is.. Legally its not as easy as just saying I don't want you here anymore...
It depends on the state. In New York, this is considered grounds for divorce (abandonment).