Yes, you can both modify and define your own equations and PDEs via the weak finite element formulation, and also assemble and use the corresponding stiffness matrices. This is an advanced feature and the Poisson equation example gives a light introduction:

Poisson equation example using the weak FEM formulationPoisson equation example using the core FEM matrix assembly functionsFor a more advanced example you can see the

topology optimization model.