If your alarm beeps at regular intervals, then yes. Most alarms have a test function that can be used to verify functionality. Batteries should be changed twice a year regardless.
When it started beeping that meant it was time to change the batteries. What most people do is to test and change the batteries twice a year most time it to occur with the time changes.
Most likely it is time to change those batteries in that thing, unless of course you tend to have frequent fire related mishaps in your home, in which case it could mean you are in need of a new unit all together.
If you do a test and your smoke alarm doesn't beep, you should first try to replace the batteries. If that doesn't work, then you need to replace your smoke alarm asap.