Yes, you can file as long as you’ve been “living apart.”

Even if you share the same residence, you can file for divorce as long as you meet the legal requirement of being “separated” for at least one year. This can mean living separate lives under the same roof.