Do I need an operation to re attach tendon to bone?

Yes. If a tendon becomes detached from bone, or causes a small piece of bone to avulse with it, surgery is required to ensure that the site heals appropriately.