Yes, as long as you are genuinely not 'together' then there is nothing to stop two parents sharing a house and still claiming sole parents.

I know a couple who did this even though they were together for years. Very naughty and not friends of mine!