I don't see why not. As long as you pass the exam, you should become certified. That said, the PE exam isn't like getting an MCSE or SCJD, it's a serious professional exam with some hefty requirements. Things like:
- You need a degree in Engineering from an accredited university
- You need your EIT (Engineer In Training) certification
- You need verified experience (usually 2-4 years) as a working engineer
If all you've got is a CS degree, you're not going to get anywhere close to getting your PE without some serious work. OTOH, if you got a EE from a good school and already have your EIT, then it's not unreasonable to expect you'd be eligible for taking the exam. It'd be worth checking with the licensing board in your state, anyway. As others have mentioned, software engineering isn't seen as a "real" engineering discipline, so you'd probably be better off applying as an electrical or mechanical engineer (whatever's on your diploma).