It's advisable to contact an attorney as soon as possible, ideally within the first few days after the accident to ensure evidence is preserved and your rights are protected.