Yes - you may qualify for the exception if you had no interest in a main home and met the 2-year rule:
Per IRS: (page 26, IRS Pub 590B): "Generally, you are a first-time
homebuyer if you had no present interest in a main home
during the 2-year period ending on the date of acquisition
of the home which the distribution is being used to buy,
build, or rebuild. If you are married, your spouse must also
meet this no-ownership requirement."