Fine-Tune model answers only the questions he learned

Is there any way that model learned with questions will only answer with the answers contained in dataset and otherwise write I don’t know?