Yes, you will pay capital gain and recapture depreciation since it had been used as a rental. You will not satisfy the requirement of living in the residence 2 of the last 5 years in order to use the capital gain exclusion of the sale primary residence.