Yes. The license is very non-restrictive. For details, see the license.

Source: NetBeans FAQ