Your question does not provide enough details so a conditional answer is yes.
It seems that the agent is just expressing an opinion.
Allow me to try to frame a scenario here.
In general, it is always wise to hire your own real estate agent to protect your interests and guide you through the process of purchasing or selling your real estate property.
Therefore, every buyerâ€™s agent performs a CMA (comparative market analysis) as part of the couching offered to his/her client to determine a reasonable purchase price. This analysis consists of selecting properties that have been sold recently and that are closely similar to the target property and within a defined perimeter nearby, usually a mile far. In the end the buyer must ponder needs and wants based on all the information provided and make an informed decision of how much is willing to pay for the property. This only reflects how much the buyer wants the property.
On the other hand, most purchasers use a loan to come up with enough money to buy a house. Then a lender comes in to the picture. Every lender will request an appraisal of the property before committing to give a loan. Appraisals are performed by professional appraisers, no real estate agents, and perform a more elaborate value analysis that includes CMAâ€™s and several other techniques to come up with an estimated value of the property. Appraisers are independent professional, so until you hire one to make an appraisal of a property there is nothing unlawful in expressing an opinion.
Of course we have here just scratched the surface of the issue. So if you would like more details, etc. please feel free to contact me at your convenience.