Yes, if you use an Android, getting an antivirus will keep it safe from unknown files and malware. The best thing to do, however, is to avoid downloading files from unknown sources. Smartphones are generally safer than Windows PCs. Android phones are targeted more often than iOS, which is considered more secure.