@blitter Yes. But how it works depends a bit on how you try to include it.
e.g. there is
\InputIfFileExists {⟨file-name⟩} {⟨true⟩} {⟨false⟩}
And if you talk about the shell, there it's also possble to switch to the nonstopmode in case you don't want to interact.
But … be aware that this might have weird side effects, simply because one of the missing files might be able to impact the rest of the document.
𝕛𝕦𝕝𝕖𝕤 