Yes it is absolutely legal to invest in mutual funds and stocks. If you don’t have much time to track individual stocks, for for mutual funds. Choose a good Direct MF platform for your investments and avoid all those brokers/banks etc who do not offer ‘Direct Plans’.
Investing with discipline via SIPs is a good way to build long term wealth. Happy Investing!