I publish Kindle books under various pen names. Yes, a person can make money writing books. The trick is to be able to write well. If you are a terrible writer or English is a second language for you, chances are slim to none that you will be able to make money publishing books. If you are determined, you will need to hire a good editor who can read through and correct your grammar and trim up your sentence structure.
If you are good at writing, you will next need a topic to write about. Non-fiction writing is a popular "sport" because many people find research and writing easy to do. There are others that write fictional stories and sell them for 99 cents on Kindle. You won't make a lot of money on just one book, but if you have 50 or more fictional works up for 99 cents and they are good, quick reads, you will make a nice chunk of change.