It depends. Without knowing how weighted the keys are, the quality of the sound, the brand, age, maintenance of the instrument etc., it can be difficult to tell without trying it out. If it’s used, similar to buying a used car, it’s important to have a licensed piano technician come with you to check out the potential instrument before you decide to buy it. If it’s new: It can be hit or miss. Generally speaking, it’s rare that big box stores have the serious piano student in mind when selling instruments to the mass market.