Badly decayed teeth can become infected and that infection can spread to other parts of the body, both locally to lips and more seriously to other parts of the body.
This is nothing to take lightly and one should not postpone immediate dental treatment. There are no temporary treatments. Call and see your dentist right away! People can and have died from untreated dental infections.