It isn't a legal requirement, no. However, it is considered a must-have for many sole traders. Also, some companies that work with you may insist you have public liability insurance in order to do business. For example, it's a common requirement if you run a market stall.
Business.gov.au recommends you speak with "a licenced insurance broker, business advisor or insurers" to determine which insurance your business needs.