If you can set the psi on the pump regulator so that it doesn't pump any more pressure then what you want, you could use a gas station pump.
If you can't set the pressure on the pump, don't use a gas station pump.
Shocks & forks only need small amounts of air and it might be at a high pressure.
Tire pumps = large amount of air at lower pressure
Shock pumps = small amount of air at higher pressure
Shock pumps only pump a small amount of air, this makes it easy to regulate how much air you put into the fork/shock.
Shock pumps also have a bleed valve, this makes it easy to let out a small amount of air if needed.
I have a 2008 specialized rock hopper with rock shox
where do I find out how much air to pump into the shocks?
Pump the fork up till it has 20 to 25% sag.
Sag is how much the fork compresses under your weight when you are on the bike.
100mm travel fork = 80mm of exposed stanchion with 20% sag or 75mm of exposed stanchion with 25% sag
I suggest you get a shock pump if you have a air fork/shock.