Question: do i pay taxes on 401k?
Answer: Yes, you are correct only the earnings/gains are taxed when they are withdrawn from the fund.