If they don't have the money for a flight, they will be sent back anyway. I don't know if the Canada government pays, if the country he came from will pitch in or if they will try to bill the person himself later but they are definitely not allowed to stay for the reason that they can not afford to pay for the flight.