Depends. It looks good on the outside.
You need to test drive it to find out what, if any, problems there are. Also, look up that car in the used car review issue of Consumer Reports. BMW 5-series have an inconsistent record when it comes to problems. Some years, the 5'er has so many problems than other years, such that you would be better off in a used Toyota Corolla.