They are needed to boot into Windows...
Neither autoexec.bat, nor config.sys are required to boot into Windows 98.
However, the "bad or missing command interpreter" or "error in config.sys Line XXX" errors can indicates problems in one or both files.