Yes it works this way !  but with two drawbacks:

now you are saving large files ( memory issue)
now you are saving as a pickle object which doesn’t save the model’s classes, but saves paths to them. As mentioned in the documentation, this may cause a problem during load time.