If it's in great shape, it was probably not fired much and is good to go. When you go to the range just pay attention to how far away the brass lands..if it's slinging them into the next week, you may need a new recoil spring. The thing to remember about replacing recoil springs is that if the mag springs are getting weak and you just install a new recoil spring, you may start getting jams due to the mag not getting the rounds up in time for that now faster returning slide to pick'em up...but, if the pistol looks to be in excellent shape and the mag followers aren't worn down and the mag springs aren't obviously weak, then more than likely it's had little use...when I get a used pistol, I do a thorough cleaning and inspection to include the magazines and then I do the "Glock spring checks" on it and go from there....
I don't know what S&W recommends as far as a check to see if the recoil spring is too weak but for a Glock, you take the empty pistol with no magazine and point it upward, retract the slide and ease it forward (upward) and see if it will pull itself into battery. To check for weak mag springs and or worn followers, just take the unloaded pistol and quickly pull the slide to the rear and see if it locks open. Seems reasonable that these checks would work with just about any auto pistol to get a general idea of it's spring condition.
It's generally accepted to replace most recoil springs about every 2500 rds in full size steel or aluminum framed pistols, the compacts and subcompacts may differ depending on their recoil spring setup...if you don't have an operator's manual, call or email and ask for one (they're free) along with inquiring about replacement intervals for the recoil springs, etc.
Enjoy your "new" pistol..