Both on the same night is fine in fact it's really good. Shadow box first to warm up practice moving around slipping jabs etc. then hit the bag and shadow box again at the end of your workout to cool down.