You can upgrade from 3.0, but please keep in mind that the 4.0 installer will over-write any matching files, so you will want to make a backup of your existing site and you will need to re-apply any customizations that you have made.