Investors & landlords

I recognize that we shouldn't have been depreciating the home 100% but we did. My question is does that affect capital gains?