One would assume if using US dollars was illegal then holding them would be as well. That's at least the case in North Korea.
Funnily enough North Korea is reputed to be the source of some of the world's highest quality counterfeits of US currency:
http://en.wikipedia.org/wiki/Superdollar