Yes – as long as it’s silent, and non-programmable.
For the Foundation exam, a basic calculator (as opposed to a scientific one) is fine. If you’re taking the exam online, you need a physical calculator, not the calculator on your computer, and not a smartphone calculator.
See our dedicated page on this subject: Amateur radio exams and calculators
Any more questions? See our Course & Exam FAQ