Inherited property sold

I inherited my mom's house and sold it for more than the fair market value at the date of death.  Will I have to pay capital gains taxes on the sale if I invest the whole amount into a new property?  This will not be my primary residence.