Not really.
You can weigh it, and the slicer gives you an estimate of how much volume/mass is needed.
But it's not too difficult to pause a print. Unload what little you have left and reload a new roll then resume the print.
That's assuming you have another roll of the exact type/color filament you are using ready to go.