Which custom rom are you using?
When you flashed a custom rom onto your device, the custom rom went over your stock rom. So i would say yes, the update will go over your current rom, I would suggest that you wait for the developers behind the custom rom you are using to make an update to the rom that will give you the Marshmallow update.