It really depends on the stand offs. The thread needs to be the same so the screws go fully into the standoff. If the standoff has a different thread they will not go in all the way which would leave the connection loose or they won't tighten properly to make the electrical connection or they will vibrate loose after some time.
Standoffs can be either SAE or metric. You need to use the correct thread.
They also need to be conductive. Don't use plastic screws and don't use thread locker on them that might interfere with the elctrical conductance.