Dental implants questions

Am a 20 yo guy who had an infection , i had my first and second molar extracted like 4 days and i'll get upper 2 molar soon, am thinking of getting implants, and i wanna ask if i need a bone graft and when do i need to get one (am thinking of getting then 6 months later until my bone and gum fully heals