Well I don't know if your friend would hack it or not, but all that matters is that you got out safe! Glad you didn't restart it... I would feel terrible!
By the way... Keep that Pokemon Yellow and keep it in good condition. When you sell it when you are older, that will be a lot of money! I have Pokemon Blue, Silver, and FireRed! All in great shape and I'm only 14! Just wish they were unused... Those are worth a LOT of money! Take Care!