Yes.
GaussDB(DWS) is compatible with PostgreSQL stored procedures. For details, see "Stored Procedures" in the Developer Guide.