Yes, you can use baking soda to clean a memory foam mattress. Just make sure to be gentle when vacuuming and avoid using excess moisture.