No – you are able to bring a claim for discrimination regardless of how long you have worked somewhere.
Protection from discrimination is known as a “day-one right”. In fact, discrimination protection also applies to the recruitment process.