I’m not sure a company would invite someone to interview just because they’re working at a rival company.
But if you’ve submitted your CV to them proactively then maybe.
They’d be stupid not to ask you these questions (I would!).
You have to be careful in answering them though if you’re still under contract.