Moved my foreign bank assets to USA but didn't convert to USD

I'm a new permanent resident and moved my foreign assets to US bank but did not convert the amount to USD right away.  After few months, I converted to USD and have suffered some losses in USD terms.  Will I be able to claim forex losses on my taxes per section 988?  The broker does show the forex losses in realized gains/loss reports on their website.