no because that is a SQL*PLUS command not an SQL command
you can put serverout put on in login.sql but that will enable serveroutput by default in the client