It would be equivalent, if you are not using batch size - dependent layers such as batchnorm layers.
These layers update their internal running stats using the stats of the current input batch and the momentum term, which would be different for smaller and larger batch sizes.
Besides that, random operations, such as dropout layers could also change the final results, since the outputs would be randomly dropped in both approaches.