Universal approximation theorem stays that neural nets can approximate any function[0] (size of that network may need to be arbitrarily big though). I'm not aware of any restrictions/limits on that.
[0] https://en.wikipedia.org/wiki/Universal_approximation_theore...