Importing DXF files

How can I import dxf files to generate 2d surfaces.
Do I have to use python and some modules like ezdxf
https://ezdxf.readthedocs.io/en/stable/
and convert them cubit objects?