The FreeCAD license is LGPL 2+ (GNU Lesser General Public License Version 2 or later).
(cf. GNU Lesser General Public License version 2.1 | Open Source Initiative)
This license allows you to:
But the following points should be noted
Footnote: It is often interpreted that this excludes use as a separable dynamic library.
The license can be checked on the license screen during installation or, after installation, on the "License" tab of the dialog that appears when selecting [Help]-[About FreeCAD] from the FreeCAD menu.
For FreeCAD add-ons, you need to check each add-on license, which is provided separately from the FreeCAD license (most of them are under the GPL or LGPL license).