Can it get stuck forever? I read somewhere that it couldn't but I also read that it could just get refunded to the sender if it can't get sent across the network. Which is true?
It may get confirmed eventually after some time because as it stays unconfirmed it is going to be prioritized, you can also try to rebroadcast the transaction again after being unsuccessfully confirmed the bitcoin will be returned to your wallet.