Of course you can!!
I will give you the starting point and you will have to read the help to reach your desired result.
Here is a sample code from one of my projects.
DoCmd.TransferText acImportFixed, "File import Specification", _
"Inventory", "File.txt"
where "Inventory" is the name of the table, file.txt is the name of the file to import. The file import specs is stored inside the access database itself with a name you choose, and it specifies the number of fields, the width and datatype of each field, etc. and you reach it by choosing File-> get external data-> import-> text files and then continue with the wizard.
This solution works if you need to import text programmatically, like in situations where the user is importing data from another source. Typical situation is hand held machines which transfer their data to the PC at the end of the day.
For simple, one-time imports, File-> get external data-> import will do the job.