No, they are separate things. There are non-EU states that use the Euro as a currency, which demonstrates that EU membership is not a necessity. The practicalities of a seceding member state retaining the Euro would probably be fraught with difficulties, though.