After you file

Yes, it should free up the loss in 2017- you may only get to take $3,000 this year, depending on your other investment income or losses, but any extra will carry over to future years.