Yes, Unity perfectly fits 2D game development. Although, there are few alternatives for 2D game engines such as Godot engine, Corona, RPG Maker, and GameMaker Studio 2.