One pf the most popular guitars, world-wide, in its range, and rightly so. Yamaha excel in whatever field they are present; they don't make duff stuff. The Pacifica (there are several variants...) is an excellent guitar, for starting and far beyond. They extend in price from just over £200 to just under £800; all are excellent, and not just 'for their price'. The '112' range' is worth the difference compared to the '012' range, in my opinion.
Buying second-hand can be a good option if one is already experienced in choosing and playing, or if there's a buddy able to offer his/her help. On my part, I'd have no qualms about used gear, but I've been playing for well over half a century, and hope I could spot a lemon by now..! If in doubt, go for new (yes, they are all light years ahead of what was available in the budget range 'back then'...). At worst, it can be returned, if bought online, and would in any case carry a guarantee.
Hope this helps.
Douglas