No, Forms 15G and 15H cannot be used to avoid TDS on capital gains. These forms are only applicable to interest, dividends, and specific other incomes, and cannot be used for capital gains tax exemption.