In some cases if there is no infection around the tooth and the bone appears healthy the implant can be placed at the same time as the tooth extraction. But as you can imagine in most cases the tooth would need extraction because of infection around it. Placing an implant in the presence of infection reduces its success.  For this reason, the decision to place an implant after removing the tooth at the same time has to be made after careful consideration.