Not in a function, procedure or package, which are entirely serverside processes.

Through SQL*Plus you could prompt for and accept a value, then pass it to a procedure, or use it in an anonymous block of PL/SQL