No - you must either declare in the specification or the body, but not both. Package spec variables are different to package body variables. Package spec variables can be addressed by external procedures e.g.

begin
my_package.g_my_variable := 'x';
end;

whereas package body variables can only be referenced within the package itself.