Yes, you can, with some considerations of course. If you want to make it your own solution, it needs a lot of time, a great team of developers, and finances. Building your own geofence system needs another software to make it all run smoothly. And mostly for Android, you can monitor up to 100 geofences while iOS can only monitor 20.
So to make everything easier for you, just choose among the available fence software online. One of the affordable apps is mSpy. There are simple 3-Way steps that you can follow and you can set up a geofence of your child and husband.