Yes and No!
Yes, because Fenics, or any other FEM package, does not care what coordinate system you are in. It just gets a mesh and differential operators.
No, because one has to do the weak formulation, no matter in which coordinates, by its own. And, as far as I know, there is no feature in Fenics, that can transfer a formulation in Cartesian coordinates to a different coordinate system.
As an example: Assume you want to solve for a heat distribution in a 3D sphere. Then one chooses(!) spherical coordinates, simply because in this system, the sphere is a cube that can be easily discretized, e.g. by Fenic's function BoxMesh
. However, the differential operators of the heat equation are typically formulated for Cartesian coordinates and one has to transform them to the new coordinates before deriving the the weak formulation.