Yes, of course.H/PJ-38 is a large 130mm gun with deep hull penetration yet the PLAN still put it onto their 055.
High-capcity electric generators, maybe even nuclear, coupled to EM guns would mean removal of gun propellant.
Which is one of the most dangerous type of munitions onboard, since propellants aren't capable of reaching the same level of IM as standard explosives.
A notional 130mm railgun that has the same footprint of the H/PJ-38 but uses compact guided KE interceptors could provide a low-medium level air defense/surface strike capability. GMLRS-AW demonstrated the feasibility of pure-KE warheads for surface strike already. KE interceptors also means HTK which means 1-shot kill burst. So lets say 600 stowed kills on a single gun mount vs maybe 100-esqe of quadpacks in VLS. That's a whole world of difference right there. Unless you jump to minature multi-pack missiles or staggered multi-layer magazines.
Also KE rounds are considerable easier to replenish than entire VLS rounds. Plus, theyre much cheaper.
However, those that you havr mentioned can only happen if the aforementioned requirements (amongst others that I haven't listed in detail) that will justify putting a railgun on a PLAN warship have been met.