Yes, and also you can sometimes select tax lots that minimize or completely eliminate the net tax exposure. This does have practical limits though e.g. if the portfolio greatly exceeds income or all of your tax lots of consequence are deep into positive territory.