Yes. However, if the distribution from a qualified retirement plan or IRA is a “coronavirus-related distribution,” then no 10% penalty applies for anyone under age 59½. What’s more, a coronavirus-related distribution may be redeposited in the same or other retirement account within three years, allowing for a recovery of taxes paid on the distribution.
The length of time that an asset is owned and that generally determines long- or short-term capital gain treatment.