Odometry with basic H-drive

I have built an 3 motor H-drive and would like to code it with odometry. Will the 3 motors and brain inertial sensor be sufficient for odometry?

Yes, that should be sufficient, depending on how accurate the brain inertial is.