Sure! Just make sure you follow the robots.txt file and don't crawl too quickly.
Other options include:
- the data dump, which contains all public data about every Stack Exchange site, including Stack Overflow, updated every two months
- the Stack Exchange Data Explorerthe Stack Exchange Data Explorer, which is updated monthly
- the Stack Overflow API, which has live data (see StackApps for more details)