It's always nice to take it apart and inspect the parts yourself (make sure nothing got broke, shouldn't have, but can you TRUST it?), and breaking it apart and cleaning it will lube all the parts to start the break-in process...
My XD wasn't bad, but my father got a compact (I think it's a Sky, some Daytona, FL company iirc), and it needed a lot of lube and racking to break it in enough that it wasn't malfunctioning (failures to eject, or when it did eject and chambered a new round, the slide wouldn't close completely)...but after a short break-in, it worked fine.