I sat for the exam, only to fail.
The hard work was worthwhile because I passed the exam.
It is even becoming accepted even in exam-English that that called "simple future tense" does not exist.
You should have known better than to take an examination without preparing for it.
Can you sit for the exam next week?