I inherited a house. My CPA says I should sell within a year to avoid capital gains. Is he right?

“We plan to sell it to another family member for the appraised value.”