Sure works.
I would probably have chosen a cheap screw like Jula's art 014443
600 pieces, 5x80mm for 269 SEK, they should work for the entire staircase and it's convenient, cheap, and quick to choose a dimension that is adequate for the whole construction.