Assuming that you are talking about sharing within your home LAN, assuming additionally that you have secured access to it in your router by e.g. allowing only “known” devices to connect (identified by MAC) and having the routers firewall up, please be at ease. 🙂
you could also en/disable file sharing ad hoc only. Personally I recommend getting FileBrowser (Pro) or FE File Explorer for your iPad - it makes file operations from and to the iPad much more comfortable and goes beyond what Apple’s Files offers.