Yes, you can retake the IELTS test as many times as you like and use any result that you want. It's important to note that you cannot retake individual sections of the test. For example, if you scored well in the Listening, Reading, and Speaking sections and poorly in the Writing section, you cannot retake only the Writing section. Your only option is to retake the entire test.