Former Swansea and Sheffield Wednesday manager Carlos Carvalhal believes football can set an example to the rest of society during the coronavirus pandemic.