gwalkerb is correct. Nowhere in the code does it say you can't, but nowhere in the code does it say HOW you can.
First, understand that SA193 B7 is a pressure vessel/piping specification. We need to dig deeper to find the answer.
How does SA 193 B7 come to existence? it starts are AISI 4140, then a qualified/certified manufacturer does some machining and fills out some paperwork and it turns into SA193 B7.
Under ASME rules you'll have a very tough time getting a WPS/PQR for welding of 4140 material. However, ASME isn't the gatekeeper of welding.
But we do have to respect the code and what it can teach us:
4140 has high carbon content, above the ASME weldability limit of 0.2% (it has 0.4%, that's what the 40 in 4140 represents).
4140 also has really high YTS and UTS. So you can't use your typical ER70-S6 wire (again, the 70 in ER70 is the min YTS of the wire).
4140 is typically hardened & heat treated. It's not a good idea to weld heat treated material, but it is possible, and it is done a lot and in many industries.
Do a quick google search and you'll find real professional resources for welding of high carbon steels. I can assure you, it is done all the time.
Now the final part; ASME compliance.
1. Does your proposed weld affect/alter the SA193 B7 bolt in such a way that it would affect it's proof strength.
Yes example:
You want to turn a Stud into a Swing Bolt and use it on a pressure vessel closure.
You want to weld two studs together and use them on a flange connection.
Any other examples even remotely close to this will not be ASME compliant.
No example:
You want to weld the nut to the back of a stud.
You want to tack weld a washer to a nut.
This outside the scope of ASME, use good judgement.
You want to tack weld nuts to the back of a ANSI flange.
This is within ASME jurisdiction, you'll need a QPS/PQR to address that.