Absolutely. However, there are things that need to be looked into a bit. It is certainly not a miracle solution, but it is another tool that the Canadian Security Intelligence Service, among others, could use to try to control foreign interference by China and other countries.
There are already ways to deal with diplomats and people in the consular services, but there is no way to identify people acting as agents of China and other countries. To go beyond your question, I think we should even consider making foreign interference a crime. One of the problems the RCMP has right now is that for it to be able to act, it has to find another crime that is connected with the interference.