Is it safe will taking a course of metformin to take painkillers such as ibuprofen?

My wife is currently on a course of metformin and has bad pains in her teeth with her wisdom tooth. Is it safe to take ibuprofen while still taking metformin?