My gut feeling is that this ought to be possible, but I've never tried it. Unfortunately, I don't see much chance of my having time to try it anytime soon, so I hope that someone else knows the answer for you.
DECLARE @JobID BINARY(16)
DECLARE @ReturnCode INT
SELECT @ReturnCode = 0
IF (SELECT COUNT(*) FROM msdb.dbo.syscategories WHERE name = N'[Uncategorized (Local)]') < 1
EXECUTE msdb.dbo.sp_add_category @name = N'[Uncategorized (Local)]'
-- Delete the job with the same name (if it exists)
SELECT @JobID = job_id
WHERE (name = N'test')
IF (@JobID IS NOT NULL)
-- Check if the job is a multi-server job
IF (EXISTS (SELECT *
WHERE (job_id = @JobID) AND (server_id <> 0)))
-- There is, so abort the script
RAISERROR (N'Unable to import job ''test'' since there is already a multi-server job with this name.', 16, 1)
-- Delete the [local] job
EXECUTE msdb.dbo.sp_delete_job @job_name = N'test'
SELECT @JobID = NULL