Certainly but it will be a lot of work and some risk. OpenTaxSolver is one FOSS project that does it.
Related: