Yes, they can. However, these interview questions should be veiled, indirect, and have a qualitative psychological basis. Do not ask direct questions to find out the reason for the dismissal. It is better to formulate questions in advance about the candidate’s point of view on phenomena/events and actions at the previous place of work.