If parliament gives them permission. I can't see a new referendum being allowed till the queen departs. I don't think she would be to pleased with anyone who wishes to reduce her deminishing commonwealth. Is that the right term?
As for if Charles gets in, most people might vote to get rid of the monarchy.