If there are only two rails on the line (the ones the trains wheels run on) and there are no overhead lines then, yes, you're correct that the line isn't electrified. There is a very small electric current running through the running rails, used for signalling.