Xss to RCE

Is it possible to get RCE from XSS ? ( Not in electron based apps )