There are Rabbi's that permit it but from the simple reading of the [Shulchan Aruch][1] it seems you should give it to poor non-Jews in such a case

Unless they have no other choice (they really need the money)

Unless no one knows that you got it from the non-Jew (so it is not public) 


  [1]: https://judaism.stackexchange.com/q/66089/5120