Do what you want ,,,,but I myself would never use hardware store anything on a firearm,,,,period, unless you're screwing on a stock or something. Next time you go, look at the box's there screws ect are in,,,,,made in China,,,
Temper would be suspect with any of that hardware you'll get at a regular hardware store IMO. I've bought grade 8 stuff before there to use on a marine application and when I went to torque it down it snapped well before even getting close to the torque spec., and they were "grade 8", supposedly. NO WAY IN HELL should a 3/8' grade 8 bolt snap at a 35 ft lb torque setting!!!! And NO,,, it wasn't the torque wrench either, it's a Snap-On wrench that's very accurate, not some 14.99 special from wally world. Not a biggie there and it just took some time to get out the broken piece. On a gun though,,you just might get the failure when you shoot it!!!! NOT GOOD!!!!! I've used some roll pins from there before for some other non-gun projects around the house and they all failed miserably, and they were used in a area where there was little pressure on them, so myself I just don't trust that cheap hardware at all.
We had a guy around here a year or two ago that did a AK screw build with Aubuchon Hardware Store screws,supposedly grade 8 oval head allen screws,, and on the 3rd shot the trunnion ,barrel and everything out front,, ended up laying on the ground 10 feet in front of him!!! He got some injuries out of the deal too,,how bad I don't know? But he was in the hospital for a few days and when I saw him,he had bandages on his nose and 2 very black eyes and a bunch of stitch's. So do what you want to. BUT,,,,,,,,just saying!!!
You don't have a gun shop local where they might just have a selection of hardware?? Worst case get one of the "spring and pin kits" just to be safe. That would be my call, but that's just me,,,,I'm a pussy and just don't relish the idea of spitting out gun parts myself. Just me. Hell probably one of the members here could even fix ya up with a spare if you have some buds here.
I sure as Hell wouldn't use hardware store , hardware though!!