The importance of using the correct screws in all areas of the machine can never be overstated!
Threads will be accurate, they will be hardened and tempered correctly with the correct finish. In short, it would be unwise, to say the least, to use anything other than the correctly specified fasteners.
Other screws for other applications that you may wish to consider: