yes,sure you can invest in stocks by borrowing money from anyone or family member but the tax is charged on net gain you earned in a year and also you should have proper knowledge about stocks.