Use of pedometer to measure steps walking

I have CA and walk with a cane. My strides are very uneven. I want to walk more to become better fit. I am thinking of purchasing a pedometer to track my steps per day. I want to increase my walking as much as possible for me. Will a pedometer work (be able to accurately keep track of the steps I take?)