Standard 5mm cap screws seem to have heads 3.5mm high, roughly .138”. I also looked up pan head machine screws. They seem to have head heights of 3.3mm to 3.8mm. You need to look at the clearance you have on the inside of your right dropout to see it you have clearance for the chain and outer sprocket.