Yes you can and it will probably be fine. MJ plants can go hermie if their photoperiod is disrupted but usually we are talking about something much more serious than this. I doubt there's any real chance of that here but if it were me, I would be careful anyway and make the change incrementaly