Depends on the connector. "Kind of fits" and "isnt usb-c" makes me think you might be dealing with the type of barrel plug that's very common on pre-USB-C non-Macs.
Unfortunately, barrel plugs tell you zilch about the power supply they're connected to. They're a dumb connector with no data capability whatsoever, and I've seen the same size of plug on power supplies with output anywhere from 3V to 24V. You need to look for the data panel on the old power supply and make sure the new one has the same voltage, the same or larger amperage, and the same polarity.
Polarity on a barrel plug is marked by a symbol that looks like this or this. Make sure the old and new match. Nearly all barrel plug power supplies are center-positive, but better to get it right the first time and avoid any risk of damage to your laptop.