While that is theoretically possible, it is much more likely that there is a bug in your code — you fail to overwrite some elements, and an Array{T}(undef, ...) can have random memory contents.
Isolating an MWE would be helpful, try to simplify your problem so that you can post it here.